package com.xuecheng.api.search;

import com.xuecheng.framework.domain.course.CoursePub;
import com.xuecheng.framework.domain.course.TeachplanMediaPub;
import com.xuecheng.framework.domain.search.CourseSearchParam;
import com.xuecheng.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.Map;

/**
 * @author Kidy
 * @date 2020/7/7 12:59
 */
@Api(value = "课程搜索接口", description = "课程搜索接口,提供课程搜索")
public interface EsCourseControllerApi {

    //搜索课程信息
    @ApiOperation("课程列表搜索")
    public QueryResponseResult<CoursePub> list(int page, int size, CourseSearchParam courseSearchParam);

    @ApiOperation("根据id搜索课程信息")
    public Map<String, CoursePub> getAll(String coursId);

    @ApiOperation("根据课程计划id搜索课程媒资信息")
    public TeachplanMediaPub getMeida(String teachplanId);
}
